<%@ page import="com.zn.product.model.Product" %><%--
  Created by IntelliJ IDEA.
  User: 顾竣尹
  Date: 2024/12/3
  Time: 下午3:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品详情</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        i {
            font-style: normal;
        }

        img {
            width: 150px;
            height: 150px;
            object-fit: contain;
        }

        .goods {
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            margin: 80px auto 100px;
        }

        .desc {
            flex: .8;
        }

        .goods .desc {
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            width: 60%;
            height: 180px;
        }

        .desc .price {
            display: flex;
            align-items: center;
            height: 40px;
            padding-left: 10px;
            background: #dcdfe6;
            color: red;
            font-size: 15px;
        }

        .desc .price span {
            margin-left: 10px;
            font-size: 20px;
            font-weight: 700;
            color: red;
        }

        .desc .business,.introduce {
            display: flex;
            align-items: center;
            padding-left: 10px;
            height: 32px;
            color: #999;
            font-size: 13px;
        }

        .desc .business span {
            margin-left: 10px;
            padding: 2px 5px;
            color: red;
            font-size: 15px;
            border: 1px solid #bebabc;
            border-radius: 8px;
        }
        .introduce span{
            margin-left: 10px;
            width: 90%;
            font-size: 16px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: black;
        }
        .btn a {
            display: block;
            width: 90px;
            height: 30px;
            background-color: red;
            color: white;
            font-weight: 600;
            text-align: center;
            line-height: 30px;
        }
    </style>
</head>
<body>
<div class="goods">
    <div class="pic"><img src="static/img/productImages/1195000845831.jpg" alt=""></div>
    <div class="desc">
        <h2>高压锅</h2>
        <div class="price">优 惠 价<span>￥<i>50</i></span></div>
        <div class="business">惊喜特价<span>正品保障</span></div>
        <div class="introduce">
            简  介:<span>质量非常好的不锈钢材质做的</span>
        </div>
        <div class="btn">
            <div><a href="shopping.jsp">加入购物车</a></div>
        </div>
    </div>
</div>

<%--<div class="goods">--%>
<%--    <div class="pic"><img src="static/img/images/productImages/<%=((Product)(request.getAttribute("product"))).getPicture()%>" alt=""></div>--%>
<%--    <div class="desc">--%>
<%--        <h3><%=((Product)(request.getAttribute("product"))).getName()%></h3>--%>
<%--        <div class="price">优 惠 价<span>￥<i><%=((Product)(request.getAttribute("product"))).getSell_price()%></i></span></div>--%>
<%--        <div class="business">增值业务<span>高价回收，急速到账</span></div>--%>
<%--        <div class="introduce">--%>
<%--            简  介<span><%=((Product)(request.getAttribute("product"))).getDescription()%></span>--%>
<%--        </div>--%>
<%--        <div class="btn">--%>
<%--            <div><a href="#">返回</a></div>--%>
<%--            <div><a href='addCar.do?number=1&productId=<%=((Product)(request.getAttribute("product"))).getId()%>'></a></div>--%>
<%--        </div>--%>
<%--    </div>--%>
<%--</div>--%>
</body>
</html>
